package com.nciae.controller;


import com.nciae.po.SecurityQuestion;
import com.nciae.service.ISecurityQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Guoliyu
 * @since 2022-03-30
 */
@RestController
@RequestMapping("/securityQuestion")
public class SecurityQuestionController {

    @Autowired
    private ISecurityQuestionService securityQuestionService;

    @PostMapping
    public ResponseEntity<Boolean> add(@RequestBody SecurityQuestion securityQuestion) {
        securityQuestionService.add(securityQuestion);
        return ResponseEntity.ok(true);
    }

}
